ArcGIS Runtime SDK for WPF - Library Reference
GetServiceAsync(String,Int32,Action<LocalFeatureService>) Method
See Also 
ESRI.ArcGIS.Client.Local Namespace > LocalFeatureService Class > GetServiceAsync Method : GetServiceAsync(String,Int32,Action<LocalFeatureService>) Method

path
A string representing the path to a Map Package.
maxRecords
An integer representing the maximum number of records that can be returned by the service in response to a query. This also determines how many features will be visible in the map as requested from the service.
callback
An action delegate either in the form of a lambda expression or a named method (event handler).
Creates and starts a new LocalFeatureService or reuses an existing LocalFeatureService if one is already running on the LocalServer.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Sub GetServiceAsync( _
   ByVal path As String, _
   ByVal maxRecords As Integer, _
   ByVal callback As Action(Of LocalFeatureService) _
) 
C# 
public static void GetServiceAsync( 
   string path,
   int maxRecords,
   Action<LocalFeatureService> callback
)

Parameters

path
A string representing the path to a Map Package.
maxRecords
An integer representing the maximum number of records that can be returned by the service in response to a query. This also determines how many features will be visible in the map as requested from the service.
callback
An action delegate either in the form of a lambda expression or a named method (event handler).

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8

See Also

© ESRI, Inc. All Rights Reserved.